﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using nyxwin.Common.Base.Utils;

namespace nyxwin.Data.Discussions
{
	public class DiscussionPost
	{
		public int Id { get; set; }
		public string Nick { get; set; } // author
		public long Time { get; set; }
		public string Content { get; set; }
		public bool MarkedUnread { get; set; }
		public int Rating { get; set; }

		public Uri NickImageUrl
		{
			get
			{
				return new NickN(this.Nick);
			}
		}

		public DateTime DisplayTime
		{
			get
			{
				return new DateTimeN(this.Time);
			}
		}
	}
}
